<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="product" tagdir="/WEB-INF/tags/product"%>
<%@ taglib prefix="order" tagdir="/WEB-INF/tags/order"%>
<%@ taglib prefix="system" tagdir="/WEB-INF/tags/system"%>

<div class="content">
	<div class="box_04">
		<div class="cnt">
			<div class="top">
				<fmt:message key="salesOrder.addPanel.consignee" />
			</div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="settings_table1"  height="60px;">
					<tr>
						<th width="120px;">
							<fmt:message key="salesOrder.shipPanel.firstname" />(<span class="red">*</span>):
						</th>
						<td align="left">
							<input type="text" id="name" name="name"	value="${address.firstname}" style="width:150px" class="inputtxt" validconf="required,maxlength=32"/>
						</td>
					</tr>
					<tr>
						<th>
							<fmt:message key="orderAddress.phoneNumber" />(<span class="red">*</span>):
						</th>
						<td align="left">
							<input type="text" id="telephone" name="telephone"	value="${address.telephone}" style="width:150px" class="inputtxt" validconf="required,maxlength=32" />
						</td>
					</tr>
					<tr>
						<th>
							<fmt:message key="orderAddress.email" />(<span class="red">*</span>):
						</th>
						<td align="left">
							<input type="text" id="email" name="email"	value="${address.email}" style="width:150px" class="inputtxt" validconf="required,email" />
						</td>
					</tr>
					<tr>
						<th>
							<fmt:message key="orderAddress.postalcode" />:
						</th>
						<td align="left">
							<input type="text" id="postalcode" name="postalcode"	value="${address.zip}" style="width:150px" class="inputtxt" validconf="maxlength=6"/>
						</td>
					</tr>
					<tr>
						<th>
							<fmt:message key="orderAddress.region" />(<span class="red">*</span>):
						</th>
						<td align="left">
							<c:set var="regionId" value="${address.regionId}" scope="request"/>
							<c:set var="regionFullName" value="${address.regionFullName}" scope="request"/>
								
							<c:choose>
								<c:when test="${not empty address.regionId}">
									<div id="regionShowDiv">
										<%--地区显示区域 --%>
										<%@include file="orderPanel4RegionShow.jsp" %>
									</div>
									<div id="regionModifyDiv">
										<%--地区修改区域 --%>
									</div>
								</c:when>
								<c:otherwise>
									<div id="regionShowDiv">
										<%--地区显示区域 --%>
									</div>
									<div id="regionModifyDiv">
										<%--地区修改区域 --%>
										<%@include file="orderPanel4RegionModify.jsp" %>
									</div>
								</c:otherwise>
							</c:choose>
						</td>
					</tr>
					<tr>
						<th>
							<fmt:message key="orderAddress.address1" />(<span class="red">*</span>):
						</th>
						<td align="left">
							<input type="text" id="address" name="address"	value="${address.address}" style="width:240px" class="inputtxt" validconf="required,maxlength=128"/>
						</td>
					</tr>
			</table>
		</div>
	</div>
</div>

<br/>
<br/>